#include "net/mytcpserver.h"
#include "net/threadpool.h"
#include "util/singleton.h"
#include <QCoreApplication>
int main(int argc, char *argv[]) {
  QCoreApplication a(argc, argv);
  singleton<ThreadPool>::getInstance(&a);

  MyTcpServer server(&a);
  server.listen(QHostAddress::AnyIPv4, 12345);

  return a.exec();
}
